Boost Math Library in Q