I want to integrate a mathematical function (numberdensity-function) over a given size range. The function I want to integrate generally consists of fractions, exponents, the euler number and roots. What code can I use for this?
For example I have found the class "math", but I can't find any integration function within this class. Furthermore I don't know the syntax for the elements mentioned above (euler number...)
greetings streight
You might be looking for numerical integration.
This is a way to get 'close enough' to a numeric value for the integral, and is usually sufficient for most applications.
The wikipedia page links to AlgLib as an implementing library with a C++ impementation.