If you pass a larger value for dg the result will be more precise.
To print more decimals you can use std::setprecision
std::cout << std::setprecision(20) << estimatorD(5000);
Last edited on
To use std::setposition you have to include <iomanip>.
ok. I'm sorry. I'm better at java.