title: Solve non-linear system in C++
body: <p>I am fairly proficient at both math and C++ and can do the following with ease in Matlab. I was just wondering how i would go about implementing this in C++ as i have little knowledge of library availability or other approaches to the problem:</p>
  
  <p>I wish to 'solve' or approximate a system and obtain the 6 coefficients.
  B = a0*x*x + a1*y*y + a2*x*y + a3*x + a4*y + a5.
  Here, <em>B,x,y</em> are numbers with 46 elements. I guess i would want to minize:
  a0*x*x + a1*y*y + a2*x*y + a3*x + a4*y + a5 - B</p>
  
  <p>How to proceed?</p>