Saturday, July 30, 2011

Fractional Story

While teaching a topic of computer organization in class, I came across the interesting concept of fractions! The topic was- fractions having denominator of zero. Generally, when computer solves the expressions with denominator of zero, they treat integer and floating point arithmetic differently. The reason is that integer and floating point arithmetic formats in the computer are totally different and they are solved with the help of different arithmetic units. If 8086 processor is concerned, floating point operations were solved by coprocessor 8087. Now internally, processor ALU solves such mathematics with the help of separate FPU i.e. floating point unit.

Actually, the word fraction means a part of a whole. In mathematics, it is denoted by two numbers who are separated by ‘–‘ or ‘/’. Division of two numbers is done with the help of these two different signs. The rule of mathematics tells that when numerator is zero the result of the fraction is zero. It does not matter what denominator is? Zero divided by a number is always zero. If numerator is smaller than denominator such as 4/9 then this fractions is called as proper fraction. But for the inverse case it is improper fraction. One more term common or vulgar fraction is used in mathematics. When fractions is obtained by dividing an integer by integer then it is vulgar fraction. So both proper and improper fractions are vulgar fractions!

When in a C program we divide a float number and 0.0 it gives floating point error of domains. One interesting this is that when 0.0 is divided by 0.0 then the result given is different! In Java programming language, 0.0 / 0.0 is a special case where the output is defined by a constant called NaN i.e. Not A Number! But when a float number is divided by 0.0 then it is either Infinity or –Infinity. The computer has made this case specialized only for floating point numbers! When integer zero is divided by another integer zero or an integer number is divided by zero then computer always given divide by zero error, which is actually a run-time error. No programming language of computer is exception for it.

A strange thing that I would like to mention here is that every year Washington Post newspaper publishes a list of favourite top ten T-shirt slogans. One of them is “Five out of four people don’t understand fractions!!!”. It is really strange but true! American preacher and author told that, when life ceases to be a fraction becomes an integer…

Saturday, July 16, 2011

एकाच संघाला त्रास देणारे खेळाडू


शिवनारायण चंद्रपालमुळे भारताविरूद्धची शेवटची कसोटी वेस्ट इंडिजने अनिर्णित राखली. त्याच्या शानदार नाबाद शतकाने भारताला वेस्ट इंडिजला लवकर गुंडाळता आले नाही. परिणामी विंडिजचा डाव लांबला. चंद्रपालने यापूर्वीही भारताला अनेकदा अशाच प्रकारे त्रास दिला आहे. विशेषत: भारताविरूद्ध त्याची बॅट तळपली नाही तर नवलच. केवळ चंद्रपालच नव्हे तर जगातील अनेक डावखुरे फलंदाज भारतीय गोलंदाजांची भंबेरी उडविताना मागील दोन शतकांत मी पाहिलेले आहेत. त्यात ऑस्ट्रेलियाचा मॅथ्यु हेडन, दक्षिण आफ्रिकेचा गॅरी कर्स्टन, श्रीलंकेचा सनथ जयसुर्या, पाकिस्तानचा सईद अन्वर, झिम्बाब्वेचा अण्डी फ्लॉवर यांचा समावेश होतो. ’कठिण समय येता’ या खेळाडूंनी भारताविरूद्ध नेहमीच आपला सर्व खेळ पणाला लावला होता. त्यांचे व भारतीय गोलंदाजांचे जणू अतुट नातेच तयार झाले होते. कधीकधी आपल्या संघाच्या निम्म्या धावा ह्या हेच खेळाडू करुन टाकत असत. अन्वरने चेन्नईतील एकदिवशीय सामन्यात केलेल्या १९४ धावा व जयसुर्याने कोलंबो कसोटीत केलेल्या ३४० धावा कदाचित भारतीय गोलंदाज विसरू शकणार नाहीत. आपल्या गोलंदाजांना जेरीस आणणारे असे हे फलंदाज होते. अशेस मालिकेचा विचार केल्यास इंग्लंडच्या फलंदाजांना नेहमीच त्रास देणारा ऑस्ट्रेलियन गोलंदाज म्हणजे ग्लेन मॅकग्रा होय. या व्यतिरिक्त गोलंदाज कधीही एखाद्या विशिष्ट संघाला त्रास देताना मात्र दिसले नाहीत.
या यादित भारताच्या दोन फलंदाजांचे नाव मी नक्कीच समाविष्ट करीन. व्ही. व्ही. एस. लक्ष्मण व विरेंद्र सेहवाग. लक्ष्मण-ऑस्ट्रेलिया व सेहवाग-पाकिस्तान यांचे असेच ’अतुट’ नाते आहे. लक्ष्मण व ऑस्ट्रेलिया यांच्या नात्याबद्दल विशेष सांगायलाच नको. आजही हा संघ सचिन-द्रविड पेक्षा लक्ष्मणची जास्त धास्ती घेतो. कदाचित त्यामुळेच त्याच्यासमोर कांगारू गोलंदाज नांगी टाकत असावेत. लक्ष्मणने आजवर केलेल्या सोळा कसोटी शतकांपैकी सहा तर सहा एकदिवशीय शतकांपैकी पाच शतके ही ऑस्ट्रेलिया विरूद्ध केलेली आहेत. केवळ शतकेच नाही तर त्याने अनेक सामने जिंकुन दिलेले आहेत व वाचविलेलेही आहेत. अशाच प्रकारे सेहवागची बॅट नेहमी पाकिस्तानविरूद्ध धावांची बरसात करत असते. त्याचे मुलतानी शतक आजही पाकिस्तानी गोलंदाज विसरणार नाहीत. सचिन-द्रविड सारखे फलंदाज मात्र केवळ एकाच संघाविरूद्ध चालत नाहीत. प्रतिस्पर्धी कोणताही असो, त्यांची बॅट ही सारखीच तळपत राहते.

Thrilling trek of Torna fort

The first fort won by Chhatrapati Shivaji Maharaj is Torna. This is the only recognition of Torna fort in the history of Maharashtra. Shivachhatrapati captured this fort first time to form the nucleus of Maratha Empire in India. The year was 1643. Shivaji gave the name Prachandgad to this fort. It implies that it is a 'huge fort'. As, the name is given my Shivaji himself, we can imagine how huge this fort could be!
We have visited many forts of Maratha empire, but for the first time we saw such a difficult and huge fort. This fort is known to be the highest fort in the Pune district with more than four thousands of feet in height. At the age of 16, Shivaji won this fort and found many cannes of gold, which was used to prepare the fort for further operations.
Torna is nearly 42 kilometers far from Pune city. We went to Sinhgad road first, which is about 22 kilometers from Pune. Sinhgad is looking like a hot picnic spot nowadays! Torna is 22 kilometers from right of the Sinhgad. We have to go by Khanapur city. Torna fort is situated in Velhe taluka of Pune district. The road from Sinhgad to Torna is really adventurous and goes through valleys. It has taken more time to reach Torna than expected. We went in the rainy season and obviously worried about the same. After reaching the Pabe village on the way there are two turns: left one is for Rajgad and right one for Torna fort. These are 3 and 5 kilometers from this turn respectively. At the entrance of the Velhe, we saw a huge statue of Chhatrapati Shivaji. We needed to park the vehicle at the base of the fort itself. From the base, fort is nearly four-five kilometers ahead. In the monsoon, the atmosphere becomes very pleasant to see. It is required to cross two mountains to reach the main fort. When we started climbing the mountain, we did not knowing where to reach at the end? But, the road forced us to keep climbing. The peak of the fort was seen from any point of the whole mountain, which was attracting us to reach there. At the base, we saw a statement given by James Douglas: ‘If Sinhgad is cave of Lion then Torna is eagle’s nest’. This statement thoroughly described how Torna is! After reaching to the peak of First Mountain, we saw the view of Panshet dam. The valley outlook gave the birth to this awesome atmosphere. Due to the clouds over the bastion of the fort, the fortification was not seen from any point of the mountain. When we started climbing actual fort, it was a thrilling experience. We experienced the real fight with this Prachandgad. At one point, the force of wind was tremendous and on the both the side deep valleys were there. Generally, wind point on the mountains is situated on the top, but here it was not at the top! Rainy season made trekking of this fort most adventurous. 
Final Mountain to the Torna
At one point, I had thought of returning to the base of the fort without climbing! Wind and rain had made this trek most thrilling for me ever. There were no railings till last 10 meters of the bastion of the fort. When we reached in the ‘cloud’, it was totally dim atmosphere everywhere. The base and village Velhe was vanished in the fog! At the top, monkeys were sat to give us a warm welcome for the entering amazing Torna fort. It was our bad luck(?) that it was not possible to visit every spot on the fort due to dark fog on the top. But, we satisfied that we completed the climbing of highest peak in our district. It is made only possible for us to visit Mengai devi and Toranjai temple on the fort. It took two hours to climb the fort. I still think, in this very less time, how did we manage to go there?