Computer Programming and the Existence of God

Answering Philosophical Questions by Using Simple Programs

© Mark Alexander Bain

Aug 20, 2009
Computer Programming and the Existence of God, Mark Alexander Bain
There 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 Gambling

Saliu 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:

  • N is the number of trials
  • DC is the degree of certainty that an event occur
  • P is the probability of an event occurring

For the programmer this, of course, translates readily into a function

Creating a FFG Function

The function will return the number of trials given:

  • the degree of certainty as a percentage
  • the probability as a percentage

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 Tossing

If 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 God

If the FFG is applied to the existence of God then the inputs could be:

  • P = 50 (either God exists or He doesn't)
  • DC = 100 (God definitely exists)

Unfortunately, the following will result in error:

print N (100,50)

However, if the inputs are changed so that:

  • P = 50 (either God exists or He doesn't)
  • DC = 99 (God probably exists)

then:

print N (99,50)

This time a sensible answer will be returned (as seen in figure 2).

Conclusions About God and the FFG

The FFG calculation cannot, of course, prove that God does not exist. However, it does show that :

  • statements such as "God exists" (with a DC of 100%) are invalid
  • statements such as "God probably exists" (with a DC of 99%) are valid

But, on the other hand:

  • statements such as "God does not exist" (with a DC of 100%) are invalid
  • statements such as "God probably does not exist" (with a DC of 99%) are valid

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.


Computer Programming and the Existence of God, Mark Alexander Bain
Figure 1: FFG Heads or Tails, Mark Alexander Bain
Figure 2: FFG Attempts to Find God, Mark Alexander Bain
   


Post this Article to facebook Add this Article to del.icio.us! Digg this Article furl this Article Add this Article to Reddit Add this Article to Technorati Add this Article to Newsvine Add this Article to Windows Live Add this Article to Yahoo Add this Article to StumbleUpon Add this Article to BlinkLists Add this Article to Spurl Add this Article to Google Add this Article to Ask Add this Article to Squidoo

Comments
Aug 27, 2009 5:58 AM
Guest :
So in the end, even with a computer, you are no better off believing that God exists or not. You are 99% sure that he probably does not exist, and 99% sure that he probably does.

GGarza
Sep 25, 2009 12:48 AM
Guest :
so i guess we r doomed. because if God comes to us and tell us he/she is god will we ever find out is it for sure or not....
2 Comments