摘要
运用天文、历法原理和数学连分数理论,通过一些数学变换得到求解闰年问题的一种不含条件判断的算法表达式,并应用算法表达式计算水能、任意2个日期的相隔天数和任意一天是星期几.结果显示,该算法表达式计算步骤简便,求解灵活快速,通用性较强.
Based on astronomy,calendar principles and mathematical theory of continued fraction,by several mathematical transformations,a method of algorithm expression without conditional judgement solved the leap year problems.Three application examples in calculating hydroenergy,the days between any two dates and the week for some days were presented.The advantages of algorithm expression includes simple calculation steps of algorithm,flexible and swift solving,great commonality,etc.
出处
《广西科学院学报》
2010年第4期429-432,共4页
Journal of Guangxi Academy of Sciences
关键词
算法
闰年
平年
回归年
公历
algorithm
leap year
common year
tropical year
Gregorian calendar