|
Day in week by date
|
|
07-19-2009, 06:17 PM
Post: #1
|
|||
|
|||
|
Day in week by date
This is an interesting algorithm. I used mathematical formula for calculating day in week if you know date ! If someone wants to know mathematical formula, just PM me !
Code: program day_in_week;There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
07-24-2009, 08:20 AM
Post: #2
|
|||
|
|||
|
RE: Day in week by date
Interesting program!
I tried to form formula by myself and got some on factorials base... Is it true?!
Read rules ![]()
|
|||
|
07-24-2009, 08:11 PM
Post: #3
|
|||
|
|||
|
RE: Day in week by date
Well formula is not with factorials, but it is a bit complicated !
Here is the formula : Code: D=( d + [2.6*m + 0.2] - 2*v + g + [g/4] + [v/4] ) (mod 7)Code: D - Day in week that you want to get BTW This is formula from book "Matematičke Formule" or "Mathematical Formulas" author : Dragoslav Herceg place : Novi Sad There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
07-25-2009, 06:40 AM
Post: #4
|
|||
|
|||
|
RE: Day in week by date
lol... what a crazy mathematic guy is that Dragoslav... Interesting aspect of thinking!
![]() I just dont understand part [2.6*m + 0.2] but nwm... i must to work hard in area of mathematic to realize solution... dont tell me it!
Read rules ![]()
|
|||
|
« Next Oldest | Next Newest »
|







I tried to form formula by myself and got some on factorials base... Is it true?!