how to use broydn


yagona
09-07-2006, 10:39 AM
Hello,

since I consider myself still a beginner of C programming I have some trouble using the broydn algorithm. In particular I have no idea how to implement the pointer function "vecfunc" correctly. In the beginning I would like to solve the minimal example:

a*b=21
a+b=10

with the solution a=3 and b=7. The functions which should be implemented are

f1: a*b-21 (=0)
f2: a+b-10 (=0)

How can this be done? I would really appreciate if you could show me an example code of the "vecfunc" routine. I am sorry for this elementary question.

Thank you very much in advance.

Rico