Calculation Snippets

31 December, 2011   

How to create a procedure for date calculation

Scripts used to calculate Daylight Saving Time (DST) for the US and EU. Valid for years 1900 to 2099. [DST wasn't adopted until the 1950s-1960s for US and 1990s for the EU] By: brad degrandis

Function of an integer raised in a power * and the calculation of the sum of a series of integers (1^e+2^e....+n^e) raised in a power.

Function of an integer raised in a power * and the calculation of the sum of a series of integers

18 February, 2013   

Brute-force calculation of any date. Includes some very tricky rules for modern-day Gregorian calendar.

General purpose converter program for conversion between any two number systems. As long as there is more than one number system in use, conversion of numbers from one system to another is important. By this program you can convert number systems with radix more than 16 also.

19 November, 2013   

General purpose converter program for conversion between any two number systems. As long as there is more than one number system in use, conversion of numbers from one system to another is important. By this program you can convert number systems with radix more than 16 also.

03 May, 2012   

MYSQL code example for calculation of Easter Day This code taken from en.wikipedia.org

13 April, 2013   

How to resize an image to fit in a desired space.

Source code for Validate Longitudinal Redundancy Checksum