title: Converting python, numpy, and scipy code into C++ compatible code?
body: <p>I have a segment of code that uses several functions from <code>numpy</code> and <code>scipy</code> that I need to use in <strong>C++</strong>, but my knowledge of C++ is much too limited to be able to transfer this code into this language. </p>
  
  <p>What C++ functions should I need to have something like this:</p>
  
  <pre><code>import numpy as np
  from scipy.integrate import quad
  from scipy.optimize import minimize
  
  minor = 2.23
  major = 3.05
  encoderdistance = 2.53141952655
  print minimize(lambda x: abs(quad(func, 0, x)[0] - encoderdistance), 1).x
  min = 90-((180/np.pi) * np.arctan(((np.tan(minimize(lambda x: abs(quad(func, 0, x)[0] - encoderdistance), 1).x))*minor)/major))
  print min
  </code></pre>
  
  <p>Thanks!</p>