Questions about Boost.Multiprecision..
I want to be performing some algebraic functions
work on
cpp_rational
which I will be using templates with the following type
to configure precision (and scale?)
#include
On 20/12/2018 02:08, A Z via Boost-users wrote:
I want to be performing some algebraic functions work on
|cpp_rational|
which I will be using templates with the following type to configure precision (and scale?)
|#include
| in order to avoid the use of floating point types.
--What is the #include statement for cpp_rational? I can't manage to find it.
It's right at the top of
https://www.boost.org/doc/libs/1_69_0/libs/multiprecision/doc/html/boost_mul...
It's all in
#include
-When using non-floating point, is there a method to obtain a variable precision pi, or do I have to use
We've been through this before - cpp_rational is an *exact* type, it absolutely does not do irrational numbers, much less transcendental ones. The clue is in the name. If you need pi, then you need floating point. John. --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
participants (2)
-
A Z
-
John Maddock