User Ratings

★★★★★
★★★★
★★★
★★
0
0
0
0
1
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 3 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 2 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 1 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 3 / 5

Rate This Project
Login To Rate This Project

User Reviews

  • boost::rational have almost all functionality listed, except: - no conversion FROM floating point (and there is good reason for this decision, see boost documentation for details) - no % operator (it makes no sense for rational numbers) - no power function (may be implemented in a few lines of code) On the other hand, boost::rational is implemented as class template and can be used with any integer type for numerator and denominator, including BigNum-like. So, boost::rational can be used to implement arbitrary-precision arithmetic. And the lack of arbitrary-precision support in this library makes it almost useless, because rational numerator and denominator tend to grow very fast even in very simple cases. As an example, try to compute rational approximation to e = 2.71... using Taylor series.