#include <iostream>
-using namespace std;
#include <ginac/ginac.h>
-using namespace GiNaC;
// Yes, we are using CUBA (should be installed on the system!)
#include <cuba.h>
+using namespace std;
+using namespace GiNaC;
+
/*
* Demonstrates the use of compile_ex with the CUBA library.
*
cout << "Enter an expression containing 'x' and/or 'y': ";
cin >> s;
// Expression now in expr
- ex expr(s, lst(x,y));
+ ex expr(s, lst{x,y});
cout << "start integration of " << expr << " ..." << endl;
// Optionally, compile with custom compiler flags:
// setenv("CXXFLAGS", "-O3 -fomit-frame-pointer -ffast-math", 1);
- compile_ex(lst(expr), lst(x,y), fp);
+ compile_ex(lst{expr}, lst{x,y}, fp);
// Starting VEGAS
// By invocation of compile() the expression in expr is converted into the