9 static std::shared_ptr<Expression> differentiate(std::shared_ptr<Expression> expr,
const std::string& var);
10 static std::shared_ptr<Expression> partialDerivative(std::shared_ptr<Expression> expr,
const std::string& var);
13 static std::shared_ptr<Expression> integrate(std::shared_ptr<Expression> expr,
const std::string& var);
16 static double trapezoidalRule(std::function<
double(
double)> f,
double a,
double b,
int n = 1000);
17 static double simpsonsRule(std::function<
double(
double)> f,
double a,
double b,
int n = 1000);
18 static double gaussianQuadrature(std::function<
double(
double)> f,
double a,
double b,
int n = 10);
19 static double monteCarloIntegration(std::function<
double(
double)> f,
double a,
double b,
int samples = 100000);
22 static double doubleIntegral(std::function<
double(
double,
double)> f,
23 double x1,
double x2,
double y1,
double y2,
int nx = 100,
int ny = 100);
26 static Polynomial taylorSeries(std::function<
double(
double)> f,
double center,
int degree);
27 static Polynomial chebyshevSeries(std::function<
double(
double)> f,
double a,
double b,
int degree);
30 static double limit(std::function<
double(
double)> f,
double x,
double h = 1e-10);