Nonlinear equations 203
(c) This calculation fails massively. If I print out the first 18 iterations, I can see
what happened:
Computing volume for Vinit = 0.600000000
k V err
1 0.704145230 -3.335338e-02
3 1.804569869 -5.655852e-01
5 0.803762387 -1.738042e-02
7 0.696989028 -3.650306e-02
9 1.122542959 -1.538455e-01
11 0.768445361 -1.765214e-02
13 0.832381352 -2.070888e-02
15 0.787732853 -1.685907e-02
The calculation fails at iteration 21 because there is an overflow error. The plot of
point. The roots all converge at the critical temperature, so it becomes extremely
difficult to find the volume because the roots and the critical points of the function
are all very close. It is easy to hit the critical point of the function and get sent to
an unphysical, unrecoverable solution.
The file outputs for this part are: