13#include "cantera/numerics/eigen_sparse.h"
38double linearInterp(
double x, span<const double> xpts, span<const double> fpts);
50double trapezoidal(
const Eigen::ArrayXd& f,
const Eigen::ArrayXd& x);
65double simpson(
const Eigen::ArrayXd& f,
const Eigen::ArrayXd& x);
79 const Eigen::ArrayXd& f,
80 const Eigen::ArrayXd& x);
This file contains definitions of constants, types and terms that are used in internal routines and a...
double numericalQuadrature(const string &method, const Eigen::ArrayXd &f, const Eigen::ArrayXd &x)
Numerical integration of a function.
double trapezoidal(const Eigen::ArrayXd &f, const Eigen::ArrayXd &x)
Numerical integration of a function using the trapezoidal rule.
double simpson(const Eigen::ArrayXd &f, const Eigen::ArrayXd &x)
Numerical integration of a function using Simpson's rule with flexibility of taking odd and even numb...
double linearInterp(double x, span< const double > xpts, span< const double > fpts)
Linearly interpolate a function defined on a discrete grid.
Namespace for the Cantera kernel.