|
||||||
Computer Programming and the Existence of GodAnswering Philosophical Questions by Using Simple ProgramsThere are many programming language philosophies, but can programming answer some of the fundamental philosophical questions such as whether or not God exists?
In a press release on May 15, 2009, Ion Saliu stated that he had found a Mathematical Proof of the Absurdity of the God Concept. This proof is derived from his Fundamental Formula of Gambling (or FFG for short) and its key concept of Degree of Certainty (DC). The question for any programmer is, therefore, can this formula actually be used to disprove the existence of God? The Fundamental Formula of GamblingSaliu sums up the FFG as the: "Number of Trials N Necessary For An Event of Probability p to Appear With The Degree of Certainty DC"
And the formula is quite simple: N = Log (1 - DC) / Log (1 - P)
Where:
For the programmer this, of course, translates readily into a function Creating a FFG FunctionThe function will return the number of trials given:
And so, for example, a Perl function would look like: sub N {
$DC = $_[0] / 100;
$P = $_[1] / 100;
return log(1 - $DC) / log(1 - $P)
}
Or for VBScript it would be: Function N (DC,P)
DC = DC / 100
P = P / 100
N = Log(1 - DC) / Log(1 - P)
End Function
This can be better understood by looking a real example. FFG and Coin TossingIf a coined is tossed then there is a 50% chance of it coming down heads and 50% chance of it coming down tails. For the thrower to have a 75% degree of certainty that they throw at least one head the calculation in perl would be: print N (75, 50);
The answer is two throws (as shown in figure 1) and, of course, anyone can test this with a coin, or move on to more complex situations (such as choosing cards from a pack of cards). Or they can move on to considering the existence of God FFG and the Existence of GodIf the FFG is applied to the existence of God then the inputs could be:
Unfortunately, the following will result in error: print N (100,50)
However, if the inputs are changed so that:
then: print N (99,50)
This time a sensible answer will be returned (as seen in figure 2). Conclusions About God and the FFGThe FFG calculation cannot, of course, prove that God does not exist. However, it does show that :
But, on the other hand:
So, like life, a program can only prove that God may, or may not, exist and it is down to the programmer's personal beliefs to come up with the correct answer (if, indeed, there is one).
The copyright of the article Computer Programming and the Existence of God in Computer Programming is owned by Mark Alexander Bain. Permission to republish Computer Programming and the Existence of God in print or online must be granted by the author in writing.
Comments
Aug 27, 2009 5:58 AM
Guest :
Sep 25, 2009 12:48 AM
Guest :
2 Comments
|
||||||
|
|
||||||
|
|
||||||