Computational Physics With Python Mark Newman Pdf ((link)) -
The book is divided into 12 chapters, each covering a specific topic in computational physics. The table of contents includes:
def relax(B, max_iter=10000): for i in range(max_iter): B_new = B.copy() B_new[1:-1,1:-1] = (B[2:,1:-1] + B[:-2,1:-1] + B[1:-1,2:] + B[1:-1,:-2]) / 4 if numpy.abs(B_new - B).max() < 1e-5: break B = B_new return B computational physics with python mark newman pdf
Then she noticed the anomaly.