I have a segment of code that uses several functions from numpy
and scipy
that I need to use in C++, but my knowledge of C++ is much too limited to be able to transfer this code into this language.
What C++ functions should I need to have something like this:
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
Thanks!