A c++ code for calculating pi value. Reply

Finally I am successful in calculating pi value — less than 0.3% error, by using random number generation. Although my computer needs some fixation on its compiler or path definition etc, there are very good online compilers which helps in testing and running c++ codes: try the given link.

Computing the value of pi using std::rand()
Enter number of trials: 10000
Enter number of random (x,y) points per trial: 10
pi = 3.14376 +- 0.00519107
average – exact = 0.00216735
CPU time = 0.004027 secs

Here is the code I found by searching a good deal on the web. Yes I did tinker around but only because my own compiler (Turbo C++ on windows 10, 64 bits) was throwing some exceptions on the included headers.

using namespace std;

double pi_estimate(const unsigned long points) More…

Gandhi Reply

Facebook has pointed out that India is now celebrating Gandhi Jayanti, a special day commemorating the birthday of Gandhi. What little I know about him indicates that he was a very wise man. Can you tell us about the holiday?
Hi Jeremy. Hope you are doing great. I believe you are in Alabama now.

Again thanks for asking me this. Pressed by the bound of time (predicated to take about 5 or 6 classes tomorrow) and its past midnight here, let me try to be as brief here in answering your query.

First off semantics. Jayanti literally means a “festivity day”. Its usually a celebratory day of the inception of an organization, institution, a tradition or observance or a famous person who the country likes to celebrate.

Evidently October 2 is the day on which Mohan Das Karamchand Gandhi was born in Por-Bandar in Gujurat state of India, a contemporary of Albert Einstein. Gandhi was 10 years elder than Einstein so even if they were to be compatriots there was only a slick chance that they would have met in high-school. But its Einstein who had once remarked “Its beyond belief to conceive a man like this in blood and flesh”. Some such thing, I am just paraphrasing from mind. More…

The Mahanadi fiasco ! Reply

The Mahanadi fiasco (fiasco; hasyaspada bifalata)

issue; The large number of mega projects on Mahanadi have been on the offing and the government at New Delhi has already licensed such to take place in total disregard of the interest of the federal partner, namely the state of Odisha. As much as 88% of the river privilege will now be the monopoly of the state of Chhatishgad.

my nuggets.

1. In a federal structure, no one state has complete right over the resources, just because “it can”. Such as river, forests, cultural heritage, employment, residence etc. The government at New Delhi must ensure there is an egalitarian sharing of all state resources by all citizens of the nation.

Why? What-if Odisha lays claims to its colossal coal and other mineral resources? Lets remember there are only 2 or 3 states in the whole country which has all coal resources of the country in their domicile and Odisha is one. Its simply in our backyards. More…

The valor of Tipu Sultan. Reply

National Army Museum lists 21 formidable enemies of UK. The only two Indians of those times ( — who were all fighting for their own valor and protection of their kingdom AND NOT INDIA as rimmed into in present times, or frequently with vengeance towards other Indian rulers of the time) are; Tipu Sultan and Rani Laxmibai (Jhansi ki Rani).
The only other one from the sub-continent was an Afgani hero Akbar Khan.
All these 21 were enemy heroes as per British museum. Where is maratha and sikh?
Enemy of enemy are friends. This is the reason maratha and sikh are not formidable enemy of the British. They did occasionally fight with the British but not what Laxmi bai, Tipu Sultan or Akbar Khan did.
In-fact it was maratha, sikh and nizam of hyderabad who weakened the forces that were fighting against British.
Everyone was fighting against their own regional oppressors, but the British was the oppressor to India as whole and maratha, sikh and nizam (in what existed as India back then, or call it the subcontinent) helped British on several occassions, teh reason why British eventually defeated the likes of Tipu Sultan and took over all of India gradually.
It was maratha who ruled over the then Odisha and enforced eg Marathi as the official language. It was rather British later which brought the aspirations of Odisha (somewhat) to fruition. Not the marathas. The regional Kings wanted only their personal gain.
The hindutwawadis always tell us the opposite because historical truth does not satisfy their personal plans of political rancor against any perceived enemy that they want to create.
The sikhs fought (alongside British) against the Afgan valley ruled by Akbar Khan. Hence Akbar khan sought indulgence of Russia which irked the British. Akbar Khan was merely trying to regain Peshwar. Had sikhs realized the British plans of pillaging India, were they going to forfeit on Peshwar? NO. So they were not fighting against British, they were simply concerned selfishly about their own power. result British became the power to be which sikhs had to fight against later.
What did Nizam of Hyderabad did? They simply allied with British to defeat Tipu Sultan. After 4 bloody wars Tipu was subdued. This meant again both Nizam, Tipu and everyone else lost to British.
It is this Nizam of Hyderabad whose descendants are the Owaisi brothers, always spewing venom towards Hindus and if necessary India. They were not patriotic even when British was in the country. After independence the AIMIM (All India Majlis-e-Ittehad-ul Muslimeen) the political force that originated from this Nizam lineage has suffered disrepute by empathizing with anti-national forces, that is by fueling treason towards India. (And the party was perhaps banned) Now shouting like lions these are basically meek creatures who never cared about this land. But Tipu Sultan did.
This is akin to what Sheikh Abdulla did. The Gandhis family of Kashmir. (Yes, the grand father of Omar Abdulla and father of Farooq Abdulla). This guy was an inspirational leader. A widely popular and respected secular leader of pre-Independence India.
remember he had changed the Islamic name of his party to include members from other religious sects. He was inclusive.
But there is a pattern to secular Islamic states. (Like Kamal Aaturk leading to Erdogan, secular becomes quite miffed later on and seeks invalid Islam everywhere)
After the inimical British was a page in history his color began to change. At the behest of Pakistani megalomaniacs for a greater Islamic state. This is a pre-cursor to the present day bloody problems of Kashmir.
Nehru was a good friend of Sheikh, the formidable modern day leader of India, from Kashmir state. But he was being colored blue by Paksitanis. This came to Nehru’s scrutiny. The evidences of his speech and writings were just too obvious for Nehru not to take action.
He was imprisoned by Nehru for 11 years. He was released only because there was a sentimental issue that baffled Nehru. the most sacred relic from Hazarat bal dargah, the most sacred shrine in Kashmir (Moi-e-Muqqadas; The hair of Holy Prophet Muhammad) got stolen. It was restored in few days. But this was a blessing in disguise for Sheikh who was extricated. (that is released from prison)
So there is two kind of Islam (like there is 2 kind of any such thing) One that sees reason and love, in deeply distressful time and one that manipulates and commits treason even in the most beautiful times.
But the former can often be influenced by baleful forces, as was the case of Sheikh influenced by Pakistan (or Erdogan by ISIS?) You can see Bangladesh, sometimes taking the most beautiful steps for humanity and at times besieged by patriarchal and religious acrimony.
The same was the case with AIMIM which was a logical political branching the Nizams had taken.
But one simply can’t expect the same degree of valor from Nizams that one saw from Tipu. Of-course the present day historians are deeply perverted from political compulsions.
But we can’t afford to sleep over with sponsored history of the age, which distorts facts and history as they happened for mere temporal gain that too of a minuscule of wannabe elites.
By the way Laxmibai’s valor came several decades later to that shown by Tipu Sultan. When Laxmi Bai is heralded as a heroine because she fought against British (uniting India for a nation to be created in 1947, was not known to any of these heroes) leaving Tipu Sultan would only be a sign of distrust towards heroic acts.
We herald many heroes of Independence but fact remains in the beginning they were pro-British (because they had homegrown rivals). Maharaja of Scindia was initially pro-British. Who is complainting about them in present times?
To bring one’s religion unnecessarily to excoriate them, when they have equal share of valor towards a heroic nationalism, is to subject nationalism to avulsion.

Let us double the privilege of our MPs, shan’t we? Reply

Lets us double the privilege of our MPs, shan’t we?

Do our MP deserve the hefty sum they are “robbing” from the tax payers money that they are doing by colluding with each other? Shouldn’t there be external bodies watching and deciding on their salary?


Apparently the MPs (member of Indian Parliament) serve the country. But in reality the country serves these worthless folks. Not worthless? I just drove this evening and I discover there are like 100s more potholes in the road, than when I drove last month.


The National Highways are so shoddy piece of work they wash off even in slight rains. My wheel got rammed in the hole so bad, I thought I have a heart fail. I am just saying. The actual experience I have been having in last 6 years in these sloppy roads is far worse. I will give you one example. NH-55 comes right in-front of one industrial area near Angul. I am not naming it. That place is such a night mare for driving. Its all due to the apathy the Government has towards citizen. They do not enforce strict measures and do not enforce on the industrial estates to have a base level of give back towards society.


People in front of this industrial estates confluence with NH-55 walk like blinded morons. Like 1000s. At any time there would be 5 people crossing your path without the slightest inkling of basic caution. Yes they just walk in front of a car without even blinking there is a fast moving object in front of them. They are looking in the same direction that you are and not towards you, can you imagine? May be like brad Pitt or Matt Damon on an espionage mission or a fight duel with a deadly Indonesian cartel member apparently without looking before crossing the heavy load of traffic. He is not battered into pieces but these men and women and kids might actually get hit by a truck or a car. And that actually does happen and leads to riots.


Now that you cross that nightmarish patch your brushing up with shocks and heart fails aren’t finished yet. One time I was driving a sedan (longer than hatchbacks) but the whole car fitted into a pot hole. I am serious, and there are many coming unexpectedly every now and then for tons of miles. Eventually it becomes an adventure but at no point of time you will actually love it.


All these are happening because there are no basic infrastructure. Aren’t our MPs responsible for making sure such basic infrastructures exist in the country? I am not just talking about traffic. Talk Health and sanitation. What are these crooks really doing to deserve so much luxury on tax payers money?


All the tax that are collected are spent towards luxury of officers and MPs and the alike. So private houses are also not interested to pay any tax. There is large deal of tax evasion. not that having a great tax collection will necessarily improve the civic amenities, as long as there is bribery and other forms of corruption. I mean you build a road and its just washed off in 1 year, while there are billions of INR spent into it.


The MPs do not pay any tax on their (total) salary (they pay tax only on base salary which is a small fraction of total emoluments). Most of the other rules by which our lives are governed are also not applicable to them. The unwanted angels. If you want to be a civil servant your age should not be more than 30 (and in case a casteist privilege can be applied, well 39) but thats that. Almost all the jobs have lower and upper age limit of entry and exit. But not applicable to MPs. You are exempted from many privileges or promotions or employments if you are from General category (meaning you are an upper caste, so you must be castigated as well as kept off from these privileges). Is there some thing like that for a general category MP? This guy is a upper caste MP, he can’t fight an election after 30 years of age, or must leave service after 60 years of age, 10 years less than that of a lower caste MP. He is a scheduled caste MP so he can win an election even if his votes are less than the winning MP because the latter is a general caste MP? then these MPs will understand what it means to castigate, insult and deprive some one meritorious based on which caste they are borne into.


So lets see how our country is actually serving these unwanted angels.


There is an imminent demand that MP salary is doubled. What the MP committee is demanding.


1. 50 K base salary >> 100 K


2. Salary + allowance of 190 k >> 280 K.
This includes salary, MP region allowance, office staff allowance.
Finance ministry already sanctioned this. They never face hurdles in what they want from this country. ( — remember parliamentary canteen and subsidies?) Only farmers and teachers and other such mere lesser mortals do. Ministerial committee already sanctioned this. only wait is PM Modi’s nod. He is never averse to good days for these over enthused privilege seekers, has he ever been? He is a happy go-abroad man. Thats a new phrase; happy-go-lucky doesn’t work for him.


Lets check other emoluments.


3. “Official-Residence Furniture” allowance to be doubled ( — lol) from 75 K >> 150 K. (I hope thats annual, they are really not as greedy as we think them you see)


4. They have another residence, right? The MP region residence; Free broadband of 1700 rs (why can’t they pay that from their salary though?)


5. You are an ex-Mp, the country served you (pun) for 5 years or if luck hadn’t it for you, you faced a hanged parliament that was dissolved prematurely, so the country actually served you for couple years. Welcome, the country will pay you pension for the rest of life. You got 20 K (btw thats how much most others in the country who actually serve the country for their lives, receive as their wholesome salary, no extra slice perks and privileges) … Now you will get 35 K.


6. When Parliament (called house) is in session MPs get daily allowance of 2 K, so a monthly staggering 60 K. Thats just allowance, no wonder you find many MPs philandering with hoes in their favorite hotels. See the country is acclimated to their blithely way of life.


7. There are 3 free phone lines conferred to the ever honorable MP; with a call limit of 50 K free call/anum.


8. A spouse or another kinship can travel with the MP without having to pay for the airfare, a staggering 34 times. The Indian tax payer will pay for this luxury. Even Kings would be jealous and miserable at such luxury. I presume these are business class airfare?


9. First class AC train trips, UNLIMITED. The first class are as luxurious as economy airways travel. Most of us would scrap such luxury even from our fantasy.


10. 4 million liter water and 50 K unit electricity per month is free in their residence. (Laugh all you can, anyone as cute as our MPs? Chhota bhim? eh ! I can’t bet. Google chhota bhim image)


11. For terrestrial tours ( — whatever that means for those who swindled enough to buy helicopters) they get 16 Rs per km. Thats modest you think? Think again. Here is a hint. Multiply by 100. 1600 Rs for a 100 km. You know thats luxury trip. In a 3-tier AC you pay that much for a 1800 kms from Bhubaneswar to Bangalore. If you drive your own car (most MPs have their luxury cars already lined up) a 100 kms takes only what 600 Rs for petrol or say 800. rest can be used for boozing and bruising.


12. Government hospitals ensure free health treatments for MPs. expenditures incurred in private hospitals will be reimbursed from government.


13. You know the Lutyen Delhi. Thats where our Kings are given their residences. No problems right? especially since you get allowances for curtains and couches every 3 months. Now you can laugh and release your sadist commotions about life in general. Why the prices go up so much, why there is so much tax and electricity, who cares about changing the curtains every 3 months. Lol, bed bugs? No not in Lutyen.


14. You can get upto 4 lakh (0.4 million) INTEREST-FREE loans for a vehicle. No not you, the metaphoric MP. The MP has a luxury car, so why he needs interest free loan? May be he has a daughter who needs a fancy vespa or a son who needs a little cocky bike. At-least fight from APP next year? well think about it, AAP has good prospects for their candidates. You hate the broom sign but do you know what privileges it can bring you? Finally think what hypocrisy we have institutionalized in India? Not yet? Well thats no canard.


15. Computer Allowances 2 lakh. thats 200000. Yoga Pro-2 laptop anyone, All in ones from IBM. And a tab and i-phone. All can come in that money. ya-hoo.


16. And why Cinderella wants to marry the Indian MP? Because Indian MP salary is tax free. But then these are two-pump chumps so that might not work so well. Also we need to find some outlet for women MPs as well. How are they doing with all that luxury?


All the data is quoted from an article in today’s odia daily. Factual errors are heartily unwanted. You can correct them. But see where we have gone from our zeal for the independence. To the shackles of subservience again? By our own unwanted angels?

Castration anxiety and Oedipus. Reply

Yesterday I came across for the first time what is Oedipus and Electra Complex. I don’t know how Freud, the famous psycho analyst made his theories about this, but the basic ideas are sufficient for me to surmise my own to make sense of certain aspects of certain incidents or people.
Remember that its present in all of us, to the extent that its correct, but it entirely depends on how we interpret our own tendencies to be successful or failing in our own relationship with the world outside. Remember that the world inside of us is different to the world out of us.
Human beings are blind, or rather blindfolded by our own limitations and we often grow out of this darkness if we can interpret correctly our own dilemma but often we can also commit grievous mistakes unbeknownst to us a priori that forces us to get back to the painful curse of returning to that state of blindness.
In retrospect we just make attempts to deal with our blindness which is not completely away from us all the time. this is our fate.
As children or rather in our nascent underdeveloped phase we are that blind self, as regard to the vagaries of relationships, we find ourselves in. We begin to respond to our outside world with the innate tendencies of our sexual nature.
The child sexuality doesn’t differentiate from a mother or father, from any other potential amorous relationship. This is what I call a relationship resolution. There is a limit to which we can distinguish an external person. Children are blind, apart from their innate intellectual and physical capabilities, which are not fully grown.
A child might have an incestuous affinity in sexual denominations toward a parent of the opposite gender to him or her self. Incest being a socially disapproved relationship tendency isn’t fully comprehended yet by a child. Also see that its easy to kidnap a kid, because they can’t distinguish an intruder from one who is dear protector because the psychoanalysis relationship resolution is not yet well developed.
When a female progeny is addressed; she has a potential insecurity from a biological or social mother, while a possessive affinity is drawn toward a biological or social father. The nascent woman wants to possess what she barely has, in terms of fatherly love. But it doesn’t stop at being a simple affection but rather a psychoanalytical desire to posses the fatherly qualities.
It doesn’t stop at the hair or muscles of the father or the pitch of his voice. It can be present in an abstract and yet surreptitious crave for the fathers genitalia, not necessarily simply for an object of desire, but as well to posses it. It happens about at the same age as a male progeny develops similar tendencies toward the opposite gender person, beginning first from the mother her self, biological or social not withstanding. The age is about 3 to 6 years in both gender.
Remember that its not unhealthy, this is how the child is making sense of the world whose failure can devastate many relationships well into adulthood and can constitute social and national crimes.
The tendency for a woman progeny to posses the father (or in my extensive opinions, toward any one of opposite gender, but simply begins from the father) is known as Electra complex or Penis Envy. Its a sweet and bitter tendency which alternates between love and insecurity. I am happy that I don’t have it. i anyway get its privilege. Oh I am so unhappy I don’t have it. Oh I can’t have it. I must hate all that can have it. So on so forth.
Genitalia envy is not the only type of envy thats available to us, and the envy is equally seen in male as well. The world thus debates castration anxiety, female genitalia mutilation and any relationship issues with such at the base of our affection as well as insecurities.
To counter the feminine failures there have been psychoanalysts (Karen Horney eg) who have brought in the tendencies of womb envy and envy for parturition (child birth by the female) into the controversial psycho analysis theory.
The Oedipus complex on the other hand “seen” in male child (3-6 years) is known as castration anxiety.
I believe its castration anxiety which was the reason behind Sanjay Gandhi’s infamous drive for male gonadectomy. Sanjay Gandhi might have had a failed Oedipus complex where his his child like incestuous tendency toward his own mother (and additionally toward any female potential partner, it just begins with a motherly figure that the child first comes across, when he is developing his psychoanalysis resolution) was the reason why he was so zealed about castrating entire male population of India.
The castration anxiety is this; he finds utter attraction toward potential female partners likely beginning his own mother which leaves him utterly embarrassed when he realizes this facet of his sexual affinity. this develops a possible punishment from more powerful members of society. the fear of losing his manhood in the hands of these retributive social powers sits deep in his psyche.
It could be his own father, an uncle somewhere or a more overbearing male friend. The shame associated with a social disapproval of the incestuous tendencies present in himself leads him to find a reason of this tendency. Oh my God its my entire male factor itself. So the interpretation all men are like this, hence all men must be castrated.
Its a deep failure because he doesn’t differentiate other men and their possible success in redefining their incestuous behavior all by themselves. They did not need Sanjay Gandhi to remind them how they are going to play their libido and how they are going to plan their parenthood.
A way ward son of a rich and powerful family holds the sway on everyone in the nation.
Oedipus was a Greek character in a tragedy epic who kills his father, the king Laius, by way of a quarrel where he doesn’t know him, simply the arguments enrages him. Then he becomes a successor to the King Laius and marries the wife of the king. In total ignorance that the wife of the deceased King is his own mother. In other words he doesn’t yet know that Laius was the King who was killed by himself in the quarrel. Also that he is the son of Laius whose wife, his own mother, is the queen he just married and produced offspring with.
When Oedipus realizes this, he destroys his own eyes and becomes blind.
This is a story of entire humanity. We are blind and commit mistakes not approved by society. We have deep failures and insecurities which originate in our own nature.
In yet another vindication howsoever wispy it might sound to you in its reasoning I find the recent developments in Kashmir to be emerging, although in a larger sense of the meaning of the Oedipus complex, from the same.
The Kashmiri is the Oedipus who kills the father, India, and marries Kashmir the mother and produces offspring that are terrorists and those who are not yet bear an uncanny affectionate endorsement of the terrorists out of brotherly relations.
This leads the Oedipus deeply mourning the killing of the other Oedipus, the terrorists and lose their eye sight in the vicious counter-firing of the army of Laius; India.
Mehbooba Mufti has written to New Delhi to get eye doctors for the grave risk of losing eyesight is running high.
Don’t lose your eye sight in endorsing terrorists. Don’t fail like Oedipus just because that tendency is there.