Mathematical expectation value of random variables
In probability theory and statistics, the expected value (or mathematical expectation, or mean, or expectation for short) of discrete random variables is the sum of the probability of each possible result multiplied by its results in the experiment. In other words, the expected value is the average of the equivalent "expectations" calculated by repeating the results of random experiments under the same opportunity. It should be noted that the expected value is not necessarily equal to the common sense "expectation"-"expected value" is not necessarily equal to every result. (In other words, the expected value is the average of the output values of variables. The expected value is not necessarily included in the output value of the variable.
The tangent circle method is generally used to calculate pi. In other words, the circumference of a circle is approximated by a regular polygon inscribed or circumscribed. Archimedes used a regular 96-sided polygon to get the precision of three decimal places of pi; Liu Hui uses a regular 3072 polygon to get a precision of 5 digits; Rudolph used a regular 262-sided polygon to obtain 35-bit accuracy. This geometry-based algorithm is computationally intensive, slow and thankless. With the development of mathematics, mathematicians have found many formulas for calculating pi intentionally or unintentionally in mathematical research. Here are some classic commonly used formulas. In addition to these classical formulas, there are many other formulas and formulas derived from these classical formulas, so I won't list them one by one. 1, Ma Qing formula π = 16 arctangent 1/5-4 arctangent 1/239 This formula was discovered by John Ma Qing, a British astronomy professor, in 1706. He used this formula to calculate the pi of 100. Ma Qing formula can get 1.4 decimal precision for each calculation. Because its multiplicand and dividend are not greater than long integers in the calculation process, it is easy to program on the computer. There are many arctangent formulas similar to Ma Qing's formula. Of all these formulas, Ma Qing's seems to be the fastest. Even so, if we want to calculate more digits, such as tens of millions, Ma Qing's formula is not enough. 2.Ramanukin formula 19 14 Indian genius mathematician Ramanukin published a series of *** 14 formulas for calculating pi in his paper. This formula can get the precision of 8 decimal places for each calculation. 1985, Gosper used this formula to calculate the digits of17,500,000 of pi. 1989 David chudnovski and Gregory chudnovski improved Lamanukin formula, which is called chudnovski formula, and the decimal precision of 15 can be obtained every time. 1994, Chu and Denovski brothers used this formula to calculate 4.044 billion. Another form of chudnovski formula that is more convenient for computer programming is: 3. AGM (Arithmetic-Geometric Average) Algorithm Gauss-Legendre Formula: pi.
Every iteration of this formula will get double decimal precision, for example, to calculate 654.38+0 million bits, 20 iterations is enough. 1September, 1999, Japanese Gao Qiao Jing Daole and Jintian were using this algorithm to calculate the digits of pi of 206158,430,000, setting a new world record.