naxtickets.blogg.se

Calculate dob in sas university edition
Calculate dob in sas university edition








You can use this program to search for your birthday, your anniversary, or any other special date. Search for your birthday within the digits of pi The starting locations match the values of the FIRSTOBS= option that was used in PROC PRINT in the previous section. Success! The program shows the starting location for each pattern within the digits of pi. Input: target : row vector of the target pattern, such as /* five-digit "birthday" */ call FindPattern (target, Digit )

calculate dob in sas university edition

* FindPattern: Finds a specified pattern within a long sequence of digits. The program then uses PROC PRINT to print six consecutive digits of pi beginning at the 433,422th digit: In 2015 I showed how to use SAS software to download the first ten million digits of pi from an internet site. Or use the DDMMYY convention, which is 140399.Ĭan you find your birthday within the digits of pi? Click To Tweet You could also use a representation such as 31488, which drops the leading zero for months or days less than 10. This article uses the MMDDYY representation, which is 031488. You can represent that date in several ways. If you want to search for a particular date, such as your birthday, you need to choose a pattern of digits that represents the date.įor example, Pi Day was first celebrated on 14MAR1988.

calculate dob in sas university edition

If so, you should be able to find any sequence of digits within the decimal digits of pi. Mathematicians conjecture that the decimal expansion of pi exhibits many properties of a random sequence of digits. This year I use SAS software to show an amazing fact: you can find your birthday (or any other date) within the first 10 million digits of pi! It is time for Pi Day, 2017! Every year on March 14th (written 3/14 in the US), geeky mathematicians and their friends celebrate "all things pi-related" because 3.14 is the three-decimal approximation to pi.










Calculate dob in sas university edition