Introduction - If you have any usage issues, please Google them yourself
The percolation problem on two dimensional square lattice is analyzed, and the critical probability P and critical exponent are obtained by programming.
(PS: program functions simply: the relationship between Pinf and P is calculated in yushen.m, yushenmain.m is called yushen.m to calculate Pinf under different p; the relationship between Rs and P is calculated in yushenhuixuan.m, and yushenmain2.m invokes to calculate the differences under different P. There are annotations in the specific implementation program. )