Press the green flag to calculate Aperte a bandeira verde para calcular
- English - This project uses odds to calculate pi. The dot will only be inside the square, and, therefore, the odds of it being also inside of the circle is the ratio of the areas of the circle and the square, such equivalent to pi/4. Computing the number of times that the dot gets over the circle, divide it by the number of dots, and multiply it by 4, we will get a really good approximation of pi. - Portuguese - Esse projeto utiliza probabilidades para calcular pi. O ponto vai sempre estar no interior do quadrado, e portanto, as chances de estar também no interior do círculo é a razão entre as áreas do círculo e do quadrado. Computando o número de vezes que o ponto encontra-se sobre o círculo, dividindo pelo número de pontos computados, multiplicando este por 4, vamos ter uma boa aproximação de pi.