Sheet 2
Sheet 2
Sheet 2
Homework 2
due 06.11.23 before 8 AM
Solutions must be delivered as specified by the instructions shown in Moodle.
Exercise 2.1:
(10 points)
Exercise 2.2:
The mean-field equation for the Ising model is
x⋆ = tanh(6βx⋆ ) . (2)
which converges to x⋆ . We analyze the case where β is slightly larger than 1/6:
6β = 1 + ϵ with ϵ ≪ 1
1
b) Write a Matlab program which calculates the estimates xn and plots the
error δn as a function of n on a semilogarithmic scale. Set β = 0.17 and
in this case x⋆ = 0.24062696159732. Does the error behave as expected?
How many iterations are needed to obtain the solution to machine accuracy?
Compare this number with the result presented in the lecture. Compare
the number of iterations with the analytic result obtained in part a) of the
exercise. What can cause differences between these two values?
(15 points)
Note: For each exercise we should be able to see, from what you handed in, what
you did and what came out of it. Print out/write down everything we need for
this. If you don’t manage to write a working program, then write down a kind of
pseudo code. That is, explain step by step, what your program should be doing.