ultimatepp/bazaar/STEM4U/Integral.h
koldo 66957ff519 STEM4U: Added numerical integration and DAE solving
git-svn-id: svn://ultimatepp.org/upp/trunk@14562 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-06-07 10:18:34 +00:00

13 lines
299 B
C++

#ifndef _STEM4U_Integral_h_
#define _STEM4U_Integral_h_
namespace Upp {
enum IntegralType {TRAPEZOIDAL, SIMPSON_1_3};
double Integral(const Eigen::VectorXd &y, const Eigen::VectorXd &x);
double Integral(Eigen::VectorXd &y, double dx, IntegralType type = TRAPEZOIDAL);
}
#endif