``broyden''

The modified Broyden algorithm discussed in class is:

  1. Trial step --
  2. Prediction step --
Important note: This formulation of the algorithm uses Rho$_{it+1}$ and g$_{it+1}$ in two different ways: to store the trial step and residual (which we called Rho' and g' in lecture) and to store the final prediction step. This becomes important for coding only at the stage where we form the final Rho$_{it+1}$. At the final step, you should first multiply the contents of Rho$_{it+1}$ by b$_{it+1}$, and then loop over all of the preceding Rho$_{itp}$, multiplying by b$_{itp}$ and accumulating the final result into Rho$_{it+1}$.

Beginning with your code ``test_it'', make a new program ``broyden'' with the modifications below.



Subsections
Tomas Arias 2004-03-12