Zellers Congruence

Zellers Congruence

Lambert M. Surhone, Miriam T. Timpledon, Susan F. Marseken

     

бумажная книга



Издательство: Книга по требованию
Дата выхода: июль 2011
ISBN: 978-6-1311-7899-3
Объём: 120 страниц
Масса: 203 г
Размеры(В x Ш x Т), см: 23 x 16 x 1

High Quality Content by WIKIPEDIA articles! Zeller's congruence is an algorithm devised by Christian Zeller to calculate the day of the week for any Julian or Gregorian calendar date.The formulas rely on the mathematician's definition of modulo division, which means that ?2 mod 7 is equal to positive 5. Unfortunately, the way most computer languages implement the remainder function, ?2 mod 7 returns a result of -2. So, to implement Zeller's congruence on a computer, the formulas should be altered slightly to ensure a positive numerator. The simplest way to do this is to replace ? 2J by + 5J and ? J by + 6J. So the formulas become:

Данное издание не является оригинальным. Книга печатается по технологии принт-он-деманд после получения заказа.

Каталог