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 
7  while(true) {
8  std::cout <<">type in formula\n>"<<std::flush;
9 
10  std::string form;
11  std::cin >> form;
12 
13  reco::FormulaEvaluator eval(form);
14 
15  std::vector<double> x;
16  std::vector<double> v;
17 
18  std::cout << eval.evaluate(x,v)<<std::endl;
19  }
20 
21  return 0;
22 }
int main(int argc, char **argv)
double evaluate(V const &iVariables, P const &iParameters) const