19 #include <boost/math/constants/constants.hpp>
25 typedef Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic>
dMatrix;
26 typedef Eigen::Matrix<unsigned, Eigen::Dynamic, Eigen::Dynamic> uMatrix;
30 using namespace boost::math::double_constants;
34 nodes << 0., 0., 0., 1., 0., 0., 1., 1., 0., 0., 1., 0.;
35 uMatrix elements(1, 1+4);
36 elements << NiHu::quad_1_elem::id, 0, 1, 2, 3;
54 std::cout <<
"WR matrix: " << A << std::endl;
56 double anal = std::log(1. + root_two) / pi;
57 std::cout <<
"log10 error = " << std::log10(std::abs(A.sum() / anal - 1.)) << std::endl;