Saturday, December 03, 2011

Hypotenuse Calculation - An age old Tamil Method

Recently I saw in facebook, an old tamil verse on a method to calculate the hypotenuse of a right-angled triangle.  The facebook status linked the source to


The verse is given below.

ஓடும் நீளம் தனை ஒரேஎட்டுக்
கூறு ஆக்கி கூறிலே ஒன்றைத்
தள்ளி குன்றத்தில் பாதியாய்ச் சேர்த்தால்
வருவது கர்ணம் தானே.

- போதையனார்

What it tells is that the hypotenuse can be easily calculated using the following formula

Hypotenuse = 7/8 * Longer Side + 1/2 * Shorter side.

The highlight of this formula is that it gives a method to calculate hypotenuse using linear equation instead of the non-linear one given by Pythagoras!

Of course, these two cannot produce the same results.  I just did a small calculation for smaller integer Pythagorean triples. It works for (3,4,5) and for (5, 12,13).  But for other integer triplets, it produces approx. results closer to the one that can be obtained using Pythagoras theorem!  I calculated the hypotenuse values using this equation for the triples from http://en.wikipedia.org/wiki/Pythagorean_triple  The results can be seen here.

Some facts:
1. The formula gives accuracy above 94% for the triplets in consideration
2. The deviation from actual hypotenuse values is increased as the ratio of longer side to the hypotenuse is increased.

Tuesday, October 11, 2011

Delicious! - It is, actually!

Delicious has been around for quite some time - previously it was http://del.icio.us, bought over by Yahoo.  Yahoo kept with it for about 2 years and then sold recently to the founders of youtube.  After the latest acquisition, delicious has undergone a major change in appearance and features, I shall come to those separately.

Right now, to the basics of Delicious.

There are so many links that are coming in our way (emails, tweets, blogs, facebook, photos, videos etc etc) and we keep reading those jumping from one to another. After a few days we encounter a situation where we want to refer back to a particular web page that we previously visited.   Sometimes we forget where we got access to that page and invariably do a google search or a specific search in our emails (multiple), twitter, browser history etc.,

Delicious helps in aggregating the links, so that we can go back and refer to whenever there is a need. One or more "Tags" can be applied to each link that we save which further helps in consolidation.  One can mark a particular link private or public (by default).  The search feature helps in searching for content as well as tags.  

The browser extensions / add-ons help in saving the links quickly. For Chrome there is an extension which helps saving much easier!  With the help of applications like twitterfeed, one can auto-tweet when storing in delicious!  More options of integrating twitter and delicious can be found here

Another useful tool that delicious provides is "feeds".  It provides a generic syntax for various kinds of feeds which are available in this help page. Using which, one can set his reader to keep abreast of the links of a particular user, in a particular tag, or a combination of both and much more.  

An off-the-track application would be using this for people working in small teams. Several team members can share a link with a mutually agreed tag and subscribe to the feed of that particular tag.  If anyone finds a link which the team needs to read, he can save it applying that particular tag.  Automatically a new item will appear in their corresponding subscription!

Saturday, September 24, 2011

Anna Centenary Library

Today we had a visit to the Anna Centenary Library in Kotturpurm, Chennai - just to see the facilities.  It was a long pending action item.  Fortunately, was able to allocate time today! 


The library was opened on September 15, 2010 and is one of the Asia's largest libraries.  

The parking space is enough, at least for the two-wheeler.  Though there are some parking slots for cars in the open, I did not check if there was a basement parking.  I suppose it should be there.  



There is a statue of Mr. C. N. Annadurai, (CM of TN 1967-1969) in a reading-pose at the entrance to the library.  



The security does not allow any kind of bags - including ladies' hand-bags to be carried into the library. Photograph is allowed from outside, but prohibited inside.  We got to know that on normal week-days, there are about 1000 visitors per day which may go up to 3000 on week-ends and government holidays.

There is no membership offered now, but the plan is in pipe-line.  RFID based inventory management and book-issuance will be put in place shortly.  Intra-net access catalog is working and it is expected that in the next one month, catalog will be available in internet too.  

The library is fully air-conditioned. It consists of 9 floors. Each floor is divided into two wings (A and B). There are 4 lifts, but only one was operational when we went today. There is an escalator which leads you up from the ground floor to first floor - the space above that is left open to get natural light in all the 9 floors.  The library is closely monitored using CCTV cameras - there are ample of them to cover each and every shelf of books in all of these floors!

Ground Floor: Reading Material for differently-abled persons, Reading Materials on Competitive Exams and a small hall where one can bring outside books and read.
1st Floor: Periodicals, Magazines (English, Tamil and a very little Hindi) and Newspapers, Children's section - Play Area and Books
2nd Floor: Tamil - Literature, History, Novel, Religion and Rare Books
3rd Floor: English - Spiritual, Social Sciences, Psychology, Humanities, Foreign Relations
4th Floor: English - Economics, Literature, Novels
5th Floor: English - Science and Mathematics
6th Floor: English - Engineering, Accounting, Management, Arts, Sports, Technology
7th Floor: English - History, Geography
8th Floor: Office Space

The ambiance in the children's section and the collection of books are very good - A must visit for parents if their children are in school.  There are even computers with nice games and puzzles loaded in them!

There is an Open Air Theatre and a conference room also with limited seating facility.  Visitors can carry their laptops to any of these floors and reading rooms.  There are very nice sofas / chairs put on each of those sections - So, it is an enjoyable place to read peacefully.  Each section has an entry register in which you need to mark your name and sign before proceeding.  I suppose they may use this for statistical purposes.  I could see as you go up in the floors the number of entries in a single day kept on reducing.  Though, was surprised to find that the number in History/Geography section deviated from this trend towards the higher side.

Some features that can be added are
- Audio and Video Collections
- Presentation Halls and Discussion rooms to be use for small groups
- A full-fledged restaurant (There is one snack-bar kind of store in the ground floor) 
- An integrated open park / play area, which may also serve as a kind of talk-place
- A wi-fi internet connection (not sure whether it exists as on date)

Also, found that the rest rooms could be maintained a little better.

Friday, April 01, 2011

Ind v SL - CWC 2011 Final

India Stats:

In 2011: Has played 13 matches from Jan to Mar 2011. Out of these, India has won 8, lost 4 and tied 1.  All the matches that India lost are to South Africa. http://goo.gl/55GR3

Against SriLanka: Played 128, Won 67 and Lost 50.  11 are No Result. http://goo.gl/BpoZu

Against SriLanka in India: Played 42, Won 28, Lost 11. 3 are No Result. http://goo.gl/Svvc7

All ODIs against all teams at home: Played 266, Won 150, Lost 106, Tied 2. 8 are no results. http://goo.gl/pNpWi

At Wankhede Stadium: Played 14, Won 8 and Lost 6. http://goo.gl/Iqyyy

SL Stats:

SL @ Wankhede Stadium: Played 4, Won 2, Lost 2
SL @ Wankhede against India: Played 2, Won 1, Lost 1 http://goo.gl/sA9TD

SL against all teams in India: Played 66, Won 23, Lost 40. 3 are No Result. http://goo.gl/MKkXD

SL in 2011: Played 11, Won 8, Lost 1. 2 are No Result. http://goo.gl/HFLZd


After World Cup 2007:
Ind v SL: Played-33, Ind - 18, SL - 13. N/R : 2 http://goo.gl/vlwwc

Last 1 year: 1 Apr 2010 to 31 Mar 2011
Ind v SL: Played-7, Ind - 3, SL - 4. http://goo.gl/vFfB6


Courtesy: Cricinfo


Monday, March 14, 2011

Bangladesh v Neterlands

Team

Current Chance

Ban v Ned

Ban wins

Ned wins

No Result

Ind

100.00

100.00

100.00

100.00

Eng

56.25

43.75

68.75

68.75

WI

96.88

93.75

100.00

93.75

SA

93.75

87.50

100.00

87.50

Ire

9.38

6.25

12.50

6.25

Ban

43.75

68.75

18.75

43.75

Ned

0.00

0.00

0.00

0.00


Today, Netherlands win can push WI and SA to QF!!

Sunday, March 13, 2011

India v SA Preview

After Bangladesh's win over England, and just before India-SA encounter, this is how the chance table looks like.

Team

Current Chance

Ind v SA

Ind Wins

SA wins

No Result

Ind

100.00

100.00

100.00

100.00

Eng

60.94

65.63

56.25

56.25

WI

98.44

100.00

96.88

96.88

SA

81.25

68.75

93.75

81.25

Ire

12.50

15.63

9.38

15.63

Ban

46.88

50.00

43.75

50.00

Ned

0.00

0.00

0.00

0.00


India's win will take WI to the quarter-finals, though a SA will take their QF chances above 90%. The chance of every team except SA gets boosted if India wins.

England v Bangladesh Preview

After WI win over Ireland, this is how the chance table in Group B looks.

Team

Current Chance

Eng v Ban

Eng wins

Ban wins

No Result

Ind

100.00

100.00

100.00

100.00

Eng

80.47

100.00

60.94

90.63

WI

99.22

100.00

98.44

98.44

SA

85.94

90.63

81.25

81.25

Ire

9.38

6.25

12.50

3.13

Ban

25.00

3.13

46.88

26.56

Ned

0.00

0.00

0.00

0.00


Today, England's win will take them to QF, with that WI also march into QF almost throwing Bangladesh out of the tournament.  But a Bangladesh win will boost their QF chances significantly.

Ireland v WI Preview

Team

Current Chance

Ire v WI

Ire Wins

WI Wins

No Result

Ind

100.00

100.00

100.00

100.00

Eng

78.13

75.78

80.47

80.47

WI

87.11

75.00

99.22

85.94

SA

82.42

78.91

85.94

78.91

Ire

29.30

49.22

9.38

22.66

Ban

23.05

21.09

25.00

32.03

Ned

0.00

0.00

0.00

0.00


India are already into the quarter-finals after their win over Netherlands.  This match is an important one for Ireland as a win will boost its QF chances significantly.  WI, on the other hand, will close in to the QF berth with a win.  WI win will also boost Bangladesh, England and SA's chances too!