using xnewt repeatedly for similar equations


eyc
07-11-2007, 08:11 PM
Dear experts,

I have 10 two-variable equations with very similar form, and can be cast in the following way:

f_i(x,y) = a[i]*exp(x) + b[i]*y

where a[] and b[] are arrays with 10 slots.

I want to pick two of them each time and use xnewt to solve for the solution. (that is, 45 sets of choices in total)

Is there any way to do this instead of setting a[] and b[] and their indices as global variables?:confused: