Cadabra
Computer algebra system for field theory problems
Loading...
Searching...
No Matches
NIntegrator.hh
Go to the documentation of this file.
1#pragma once
2
3#include "Storage.hh"
4#include "Compare.hh"
5#include "Exceptions.hh"
6#include "NTensor.hh"
7#include "NEvaluator.hh"
8
9namespace cadabra {
10
14
16 public:
17 // Initialise with an Ex subtree containing the integrand.
18 NIntegrator(Ex::iterator);
19
20 // Set integration range.
21 void set_range(const Ex&, double from, double to);
22
23 // Entry point.
24 std::complex<double> integrate();
25
26 // Object to evaluate the expression. Users of `NIntegrator`
27 // can set values for variables in this evaluator.
29
30 private:
31 Ex::iterator integrand;
34};
35
36};
Definition Storage.hh:170
Functionality to numerically evaluate a scalar expression, give the values of its building blocks.
Definition NEvaluator.hh:29
Functionality to numerically integrate definite integrals.
Definition NIntegrator.hh:15
Ex::iterator integrand
Definition NIntegrator.hh:31
void set_range(const Ex &, double from, double to)
Definition NIntegrator.cc:12
double range_to
Definition NIntegrator.hh:33
NEvaluator evaluator
Definition NIntegrator.hh:28
std::complex< double > integrate()
Definition NIntegrator.cc:19
Ex ivar
Definition NIntegrator.hh:32
double range_from
Definition NIntegrator.hh:33
Functions to handle the exchange properties of two or more symbols in a product.
Definition Adjform.cc:83