Figure 1 | Scientific Reports

Figure 1

From: Calculation of π and Classification of Self-avoiding Lattices via DNA Configuration

Figure 1

Calculation of π using Monte Carlo simulation. (a) The representative schematics for π calculation with a different number of dots in a square. Calculated numerical value of π (=πest, where est stands for estimation) is defined as (ND-in/ND) × 4, where ND-in and ND stand for the number of dots inside a quadrant of a circle (with a radius of R) and the total number of dots in a square (with a length of R). By definition, πest with four different ND, i.e. 10, 50, 100, and 1000 are calculated to be 2.40 (=6/10 × 4), 2.72, 2.88 and 3.09 respectively, showing that roughly larger ND gives a more accurate known value of π (πknown ≈ 3.14). (b) A flow chart depicting algorithmic steps to obtain πest with various ND and total number of trials (nT). (c) πest as a function of nT at a given ND (e.g. 10, 50, 100, or 1000). In general, πest approaches to πknown with the increasing nT at relatively larger ND values, as expected. (d) πest as a function of ND at a fixed nT (e.g. 1, 5, 10, 50, or 100 marked as a dotted line in (c). From observation, πest approaches to πknown with the increasing ND at relatively smaller nT but πest is roughly independent with ND at relatively larger nT. (e) A representative graph of πest as a function of ND. As ND is increased, fluctuation of πest from πknown tends to decrease. Insets show tendencies of fluctuation of πest in the two different ranges of ND.

Back to article page