CMS 3D CMS Logo

runFormulaEvaluator.cc
Go to the documentation of this file.
2 #include <iostream>
3 #include <vector>
4 
5 int main(int argc, char** argv) {
6  while (true) {
7  std::cout << ">type in formula\n>" << std::flush;
8 
9  std::string form;
10  std::cin >> form;
11 
12  reco::FormulaEvaluator eval(form);
13 
14  std::vector<double> x;
15  std::vector<double> v;
16 
17  std::cout << eval.evaluate(x, v) << std::endl;
18  }
19 
20  return 0;
21 }
double evaluate(V const &iVariables, P const &iParameters) const
int main(int argc, char **argv)
float x